checkout: Add --allow-noent option
authorColin Walters <walters@verbum.org>
Wed, 1 May 2013 16:15:02 +0000 (12:15 -0400)
committerColin Walters <walters@verbum.org>
Wed, 1 May 2013 16:15:02 +0000 (12:15 -0400)
commitc60c70e9a9d82cef81081b574b1e4ce4e91387df
tree723abcdf306b4f2239624bc4294cc1467a3599df
parentf4327cc6a0f3fb0df9de52d03d8f0384d10c264c
checkout: Add --allow-noent option

This is useful for the gnome-ostree build system where each build is
one commit, but it's split up into /runtime /devel /debug etc. trees.
Ideally we wouldn't have a /debug subdirectory for "noarch"
components for example.

So add an option to not error out if the given path doesn't exist in
the commit.
src/ostree/ot-builtin-checkout.c
tests/t0000-basic.sh